package com.ruoyi.points.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.points.mapper.BargainGroupListMapper;
import com.ruoyi.points.domain.BargainGroupList;
import com.ruoyi.points.service.IBargainGroupListService;

/**
 * 商品统计详情Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-05
 */
@Service
public class BargainGroupListServiceImpl implements IBargainGroupListService
{
    @Autowired
    private BargainGroupListMapper bargainGroupListMapper;

    /**
     * 查询商品统计详情
     *
     * @param id 商品统计详情主键
     * @return 商品统计详情
     */
    @Override
    public BargainGroupList selectBargainGroupListById(Long id)
    {
        return bargainGroupListMapper.selectBargainGroupListById(id);
    }

    /**
     * 查询商品统计详情列表
     *
     * @param bargainGroupList 商品统计详情
     * @return 商品统计详情
     */
    @Override
    public List<BargainGroupList> selectBargainGroupListList(BargainGroupList bargainGroupList)
    {
        return bargainGroupListMapper.selectBargainGroupListList(bargainGroupList);
    }

    /**
     * 新增商品统计详情
     *
     * @param bargainGroupList 商品统计详情
     * @return 结果
     */
    @Override
    public int insertBargainGroupList(BargainGroupList bargainGroupList)
    {
        return bargainGroupListMapper.insertBargainGroupList(bargainGroupList);
    }

    /**
     * 修改商品统计详情
     *
     * @param bargainGroupList 商品统计详情
     * @return 结果
     */
    @Override
    public int updateBargainGroupList(BargainGroupList bargainGroupList)
    {
        return bargainGroupListMapper.updateBargainGroupList(bargainGroupList);
    }

    /**
     * 批量删除商品统计详情
     *
     * @param ids 需要删除的商品统计详情主键
     * @return 结果
     */
    @Override
    public int deleteBargainGroupListByIds(Long[] ids)
    {
        return bargainGroupListMapper.deleteBargainGroupListByIds(ids);
    }

    /**
     * 删除商品统计详情信息
     *
     * @param id 商品统计详情主键
     * @return 结果
     */
    @Override
    public int deleteBargainGroupListById(Long id)
    {
        return bargainGroupListMapper.deleteBargainGroupListById(id);
    }
}
